import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/permission'
// 过滤器
import * as obj from '@/filter/filter'

// 全局引入组件
import footerList from '@/components/footerList/my-index.vue'
// 设置默认图片
import { imgerr } from './utils/directive'
Vue.component('footerList', footerList)
Vue.directive('imgerr', imgerr)
for (const key in obj) {
  Vue.filter(key, obj[key])
}
Vue.config.productionTip = false
Vue.use(ElementUI)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
